import request from '../req'
// 获取列表
export const getList = async (params: any) => {
    const res = await request.get('/crm/record/query-dy-data', {
        params: params
    })
    return res
}
// 获取所有销售
export const getSalesList = async (params: any) => {
    const res = await request.get('/crm/sales/querySales-list', {
        params: params,
        noLoading: true
    })
    return res as any
}
// 导入抖音报白数据
export const importBaobaiData = async (data: any) => {
    const res = await request.post('/crm/record/import-dy-data', data)
    return res
}


// // 获取补充材料长期保
// export const addMaterialsLong = async (data: any) => {
//     let res = await request.put('/period-insur/report-case/materials-add', data)
//     return res
// }
// // 删除补充材料长期保
// export const removeMaterialsLong = async (data: any) => {
//     let res = await request.post(`/period-insur/report-case/materials-del/?fileId=${data}`)
//     return res
// }
// // 下载附件长期保
// export const exportImagesLong = async (params: any) => {
//     let res = await request.get('/period-insur/report-case/download-report-case-images', {
//         params: params,
//         responseType: 'arraybuffer'
//     })
//     return res
// }

// // 获取补充材料日日保
// export const getMaterialsDay = async (params: any) => {
//     let res = await request.get('/wesure/wesure-report-case/materials', {
//         params: params
//     })
//     return res
// }
// // 获取补充材料日日保
// export const addMaterialsDay = async (data: any) => {
//     let res = await request.put('/wesure/wesure-report-case/materials-add', data)
//     return res
// }
// // 删除补充材料日日保
// export const removeMaterialsDay = async (data: any) => {
//     let res = await request.post(`/wesure/wesure-report-case/materials-del/?fileId=${data}`)
//     return res
// }
// // 下载附件
// export const exportImagesDay = async (params: any) => {
//     let res = await request.get('/wesure/wesure-report-case/download-report-case-images', {
//         params: params,
//         responseType: 'arraybuffer'
//     })
//     return res
// }
// // 获取允许添加补充材料的保司
// export const getMaterialInsureCompany = async (data: any) => {
//     let res = await request.get('/period-insur/report-case/materials-insur-company')
//     return res
// }


// 删除报白数据
export const removesalesdydataapi = async (data: any) => {
    const res = await request.put('crm/record/remove-sales-dy-data', data)
    return res
}
